package com.kgc.novel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kgc.novel.domain.entity.BookManage;
import com.kgc.novel.domain.param.BookManageParam;
import com.kgc.novel.domain.vo.BookManageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookManageMapper extends BaseMapper<BookManage> {


    List<BookManageVO> getAllManage(BookManageParam bookManageParam);

    Long getAllManageCount(
            @Param("bookName") String bookName,
            @Param("authorId") String authorId,
            @Param("code") String code,
            @Param("classifyId") String classifyId,
            @Param("tagId") String tagId,
            @Param("end") String end,
            @Param("status") String status
    );

    BookManageVO getManageById(@Param("id") String id);
}
